package shops

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type LsShopRouter struct {}

// InitLsShopRouter 初始化 lsShop表 路由信息
func (s *LsShopRouter) InitLsShopRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	lsShopRouter := Router.Group("lsShop").Use(middleware.OperationRecord())
	lsShopRouterWithoutRecord := Router.Group("lsShop")
	lsShopRouterWithoutAuth := PublicRouter.Group("lsShop")
	{
		lsShopRouter.POST("createLsShop", lsShopApi.CreateLsShop)   // 新建lsShop表
		lsShopRouter.DELETE("deleteLsShop", lsShopApi.DeleteLsShop) // 删除lsShop表
		lsShopRouter.DELETE("deleteLsShopByIds", lsShopApi.DeleteLsShopByIds) // 批量删除lsShop表
		lsShopRouter.PUT("updateLsShop", lsShopApi.UpdateLsShop)    // 更新lsShop表
	}
	{
		lsShopRouterWithoutRecord.GET("findLsShop", lsShopApi.FindLsShop)        // 根据ID获取lsShop表
		lsShopRouterWithoutRecord.GET("getLsShopList", lsShopApi.GetLsShopList)  // 获取lsShop表列表
	}
	{
	    lsShopRouterWithoutAuth.GET("getLsShopPublic", lsShopApi.GetLsShopPublic)  // lsShop表开放接口
	}
}
